package com.kaifamiao.repository;

import com.kaifamiao.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    boolean existsByTel(String tel);

    boolean existsByEmail(String email);

    boolean existsByAccount(String account);

    User findByTel(String tel);

    User findByEmail(String email);

    User findByAccount(String account);

}
